<?php
    
    /**
     * Created by PhpStorm.
     * User: Administrator
     * Date: 2017/4/12
     * Time: 10:55
     */
    class CivilServant extends Father
    {
        public $like;
    
        /**
         * CivilServant constructor.
         * @param $name
         * @param $age
         * @param $height
         * @param $weight
         * @param $like
         */
        function __construct($name,$age,$height,$weight,$like)   //多加了一个like
        {
            $this->name = $name;
            $this->age = $age;
            $this->height = $height;
            $this->weight = $weight;
            $this->like = $like;
            echo "構造函數執行完成::"."姓名是".$name."年龄是：".$age."身高是：".$height."体重是：".$weight."我的爱好是".$like."<br>";
        
        }
        public function profession(){
            echo "我的職業是：镇长"."<br>";
        
        }
    }